import cn.yunhe.entity.Location;
import cn.yunhe.server.LocationDaoServer;
import org.junit.Before;
import org.junit.Test;

public class LocationType {

    LocationDaoServer locationDaoServer = null;

    @Before
    public void init(){
        locationDaoServer = new LocationDaoServer();
    }

    @Test
    public void Test1(){
        Location location = new Location();
        location.setProvince("河南省");
        location.setCity("郑州市");
        location.setDistrict("二七区");
        boolean flag = locationDaoServer.insertLocation(location);
        System.out.println(flag);
        Location location1 = locationDaoServer.getLocation(location);
        System.out.println(location1);
    }
}
